/*!
 * 通用筛选模块
 * @author  
 */
define( [ 'jquery' ], function( $ ) {
  /*filter*/
  $( ".filter-btn" ).click( function() {
    var _this = $( this );
    if ( _this.siblings( ".filter-select" ).is( ":hidden" ) ) {
      _this.siblings( ".filter-select" ).show();
      _this.find( "span:first-child" ).removeClass( "glyphicon-filter" ).addClass( "glyphicon-menu-up" );
      _this.find( "span:last-child" ).text( "收起筛选" );
    } else {
      _this.siblings( ".filter-select" ).hide();
      _this.find( "span:last-child" ).text( "展开筛选" );
      _this.find( "span:first-child" ).addClass( "glyphicon-filter" ).removeClass( "glyphicon-menu-up" );
    }
  } );
} );
